package com.uubx.service;

import com.uubx.pojo.User;
import com.uubx.vo.UserVo;

import java.util.List;

/**
 * @Author wuguojun
 * @Date 2020/12/26 18:52
 * @Version 1.0
 */
public interface UserService {
    //分页查询
    public List<User> queryAllUser(UserVo userVo);

    public Long queryAllUserCount(UserVo userVo);

    //通过电话号码查询
    public List<User> queryUserByPhone(String phone);

    //通过启用状态查询
    public List<User> queryUserByStatus(UserVo userVo);

    //通过启用状态查询账户 总数
    public Long queryUserByStatusCount(Integer status);

    //停用账户状态
    public void updateUserByStatus(Integer id,Integer status);

    //通过id查询账户
    public User queryUserById(Integer id);

    //添加账户
    public void addUser(User user);

    //    //编辑账户
    public void updateUser(User user);


}
